home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / dskutil / dkcare20.zip / INSTALL.BAT < prev   
DOS Batch File  |  1995-01-24  |  4KB  |  98 lines

  1. @echo off
  2. cls
  3. If %1a == a goto Syntax
  4. If %2a == a goto Syntax
  5. echo.
  6. echo              ╔═══════════════════════════════════════════════════════╗
  7. echo              ║ WELCOME TO THE INSTALLATION PROGRAM FOR DiskCare v2.0 ║
  8. echo              ╚═══════════════════════════════════════════════════════╝
  9. echo.
  10. echo DiskCare v2.0 will be installed to %1%2
  11. echo.
  12. choice /cyn "Do you wish to continue "
  13. If errorlevel=2 goto alt
  14. If errorlevel=1 goto continue
  15.  
  16. :continue
  17. echo.
  18. echo Making the %1%2 directory.
  19. md %1%2
  20. echo.
  21. echo Unpacking to %1%2
  22. disk %1%2
  23. echo.
  24. echo For your Convenience a BATCH file has been provided. If your Destination
  25. echo Directory is different from C:\DISKCARE, then you must edit it. It will
  26. echo be MOVED to C:\DOS.
  27. echo.
  28. echo Press Space Bar To Continue
  29. pause>disk$$$$.tmp
  30. del disk$$$$.tmp
  31. copy %1%2\disk.bat
  32. copy disk.bat c:\dos
  33. echo.
  34. choice /c:yn "Whould you like the Installation Files Deleted "
  35. If errorlevel=2 goto bye
  36. If errorlevel=1 goto next
  37.  
  38. :next
  39. echo.
  40. echo Deleting Installation files.
  41. echo.
  42. del disk.exe
  43. del file_id.diz
  44. del disk.bat
  45. echo Installation Complete. Type 'DISK' to run.
  46. del install.bat
  47. goto end
  48.  
  49. :alt
  50. cls
  51. echo ╔════════════════════╗
  52. echo ║ ALTERNATE METHOD   ╠═══════════════════════════════════════════════════════╗
  53. echo ╚═╦══════════════════╝                                                       ║
  54. echo   ║                                                                          ║
  55. echo   ║ The alternate method for installation is:                                ║
  56. echo   ║                                                                          ║
  57. echo   ║ 1. Make desired directory.                                               ║
  58. echo   ║ 2. Copy/Move DISK.EXE to that Directory.                                 ║
  59. echo   ║ 3. Type 'DISK'. This will unpack the program.                            ║
  60. echo   ║ 4. Delete DISK.EXE, FILE_ID.DIZ & INSTALL.BAT                            ║
  61. echo   ║ 5. Copy/Move DISK.BAT to one of the Directories in your PATH statement   ║
  62. echo   ║ 6. Type 'DISK' to run.                                                   ║
  63. echo   ╚══════════════════════════════════════════════════════════════════════════╝
  64. echo.
  65. echo Your PATH statement:
  66. echo %path%
  67. echo.
  68. echo DiskCare v2.0 wasn't installed Correctly. Please try again.
  69. goto end
  70.  
  71. :syntax
  72. echo.
  73. echo.
  74. echo ╔════════════════════╗
  75. echo ║ INSTALLATION ERROR ╠═══════════════════════════════════════════════════════╗
  76. echo ╚═╦══════════════════╝                                                       ║
  77. echo   ║                                                                          ║
  78. echo   ║  The proper syntax to install Diskcare v2.0 is:                          ║
  79. echo   ║                                                                          ║
  80. echo   ║          INSTALL [DRIVE:] [\PATH]                                        ║
  81. echo   ║                                                                          ║
  82. echo   ║  Example:                                                                ║
  83. echo.  ║                                                                          ║
  84. echo   ║  Install C: \DISKCARE   NOTE: There is a space between C: and \diskcare  ║
  85. echo   ║                                                                          ║
  86. echo   ╚══════════════════════════════════════════════════════════════════════════╝                                                                    
  87. echo.                                                                             
  88. echo DiskCare v2.0 wasn't installed Correctly. Please try again.                  
  89. goto end
  90.  
  91. :bye
  92. echo.
  93. echo Installation Complete, Type 'DISK' to run.
  94. goto end
  95.  
  96. :end
  97. echo.
  98.